package com.ruoyi.source.domain;

import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 运货人所属用户对象 freight_user
 * 
 * @author lml
 * @date 2025-01-06
 */
public class FreightUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 运货人ID */
    @Excel(name = "运货人ID")
    private Long freightId;
    private String freightPeople;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;
    private String nickName;

    /** 删除标志 */
    private Long del;

    /** 一对一映射 freightInfo */
    private FreightInfo freightInfo;

    /** 一对一映射 sysuser */
    private SysUser sysUser;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFreightId(Long freightId) 
    {
        this.freightId = freightId;
    }

    public Long getFreightId() 
    {
        return freightId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    public void setFreightInfo(FreightInfo freightInfo)
    {
        this.freightInfo = freightInfo;
    }

    public FreightInfo getFreightInfo()
    {
        return freightInfo;
    }

    public void setFreightPeople(String freightPeople)
    {
        this.freightPeople = freightPeople;
    }

    public String getFreightPeople()
    {
        return freightPeople;
    }

    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public String getNickName()
    {
        return nickName;
    }

    public void setSysUser(SysUser sysUser)
    {
        this.sysUser = sysUser;
    }

    public SysUser getSysUser()
    {
        return sysUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("freightId", getFreightId())
            .append("userId", getUserId())
            .append("del", getDel())
            .toString();
    }
}
